import pandas as pd
from matplotlib import pyplot as plt

data = pd.read_csv('fill_line_plot_data.csv')
ages = data['Age']
dev_salaries = data['All_Devs']
py_salaries = data['Python']
js_salaries = data['JavaScript']

plt.plot(ages, dev_salaries, color='#444444', linestyle='--', label='All Devs')

plt.plot(ages, py_salaries, label='Python')

overall_median = 57287
plt.fill_between(ages, py_salaries, dev_salaries,
                 where=(py_salaries > dev_salaries),
                 interpolate=True,
                 alpha=0.25,
                 label='Above Avg')
plt.fill_between(ages, py_salaries, dev_salaries,
                 where=(py_salaries <= dev_salaries),
                 interpolate=True,
                 color='#000000',
                 alpha=0.25,
                 label='Below Avg')
plt.legend()

plt.xlabel('Ages')
plt.ylabel('Median Salary(usd)')
plt.title('Median Salary(USD) by Age')

plt.tight_layout()
plt.show()
